package com.weitu.environmental.monitor.service.impl;

import com.weitu.environmental.monitor.entity.MonitoringRegistration;
import com.weitu.environmental.monitor.mapper.MonitoringRegistrationMapper;
import com.weitu.environmental.monitor.service.MonitoringRegistrationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author zhangqingxi 2017-05-04
 */
@Service
public class MonitoringRegistrationServiceImpl implements MonitoringRegistrationService {

    private final MonitoringRegistrationMapper monitoringRegistrationMapper;

    @Autowired
    public MonitoringRegistrationServiceImpl(MonitoringRegistrationMapper monitoringRegistrationMapper) {
        this.monitoringRegistrationMapper = monitoringRegistrationMapper;
    }

    @Override
    public List<MonitoringRegistration> findByParam(Map paramMap) {
        return monitoringRegistrationMapper.findByParam(paramMap);
    }

    @Override
    public Integer findByParamCount(Map paramMap) {
        return monitoringRegistrationMapper.findByParamCount(paramMap);
    }

    @Override
    public MonitoringRegistration findById(String id) {
        return monitoringRegistrationMapper.findById(id);
    }

    @Override
    public Integer add(Map paramMap) {
        return monitoringRegistrationMapper.add(paramMap);
    }

    @Override
    public Integer updateById(Map paramMap) {
        return monitoringRegistrationMapper.updateById(paramMap);
    }
}
